package com.zbs.framework.swagger.view;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class ViewNew {
    private Integer id;
    private String apiName;
    private Integer parentId;
    private List<ApiModelView> apiList;

    public ViewNew(View view) {
        this.id = view.getId();
        this.apiName = view.getGroupName();
        this.apiList = view.getApiList();
        this.parentId = view.getParentId();
    }
}
